//JS-function
//定时 URL跳转
function urlTime(url, time)
{
	window.setTimeout("window.location.href='"+url+"'", time);
//	window.setInterval("window.location.href='"+url+"'", time); //反复执行
}
//提示信息 
function showMsg(msg, url, time)
{
	document.write('<div class="dialog">');
	document.write('<div class="tit">提示信息</div>');
	document.write('<div class="box" align="center">');
	document.write('<div class="gray" style="color:red">'+msg+'</div>');
	document.write('<div id="uperror" style="color:red">');
	
	if (url != '' && time == '')
	{
		document.write('<a href="javascript:location=\''+url+'\'">确定</a>');
	}
	if (url == '' && time == '')				
	{
		document.write('<a href="javascript:history.back()">确定</a>');
	}
	if (url != '' && time != '')
	{
		document.write('<a href="javascript:location=\''+url+'\'">如果您的浏览器没有自动跳转,请点击这里</a>');
		urlTime(url, time);
	}

	document.write('</div>');
	document.write('</div>');
	document.write('</div>');
}
